package com.burgeon.backend.SHOP.service;

import com.burgeon.backend.SHOP.entity.PickingCard;
import com.burgeon.backend.SHOP.entity.PickingCardItem;
import com.burgeon.backend.SHOP.service.ex.ErrorDataExceptionApp;
import com.burgeon.backend.SHOP.service.ex.LoggingExceptionApp;
import com.burgeon.backend.SHOP.service.ex.PhoneExceptionApp;
import com.burgeon.backend.SHOPBACKEND.entity.Employee;
import com.burgeon.backend.entity.Store;
import com.burgeon.backend.entity.User;

import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.List;

public interface AppUserService {

    List<Employee> GetEmpDataBylog(String id,String token);

    HashMap AppUserLoginByModEmp(User user, HttpSession session) throws LoggingExceptionApp;

    HashMap modEmpData(String phone,String id,String token) throws ErrorDataExceptionApp;

    List<PickingCard> getPickingCard(String phone,String token);

    List<PickingCardItem> getPickingCardItem(String id,String token);

    List<Store> GetStores(String city,String token);

    void AppUserLogin(User user,HttpSession session) throws LoggingExceptionApp;

    User GetPhone(String mag,String iv,String sessionkey,
                  String token,String openid,String openid_v,
                  String img,String nickName, HttpSession session) throws PhoneExceptionApp;

    User Log(String code, String token, HttpSession session) throws LoggingExceptionApp;

    User GetUserData(String openid,String token);

}
